﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BaffoHat.Core
{
    public class Glass
    {
        public Glass(DiceFace diceAssociation)
        {
            this.IsEmpty = true;
            this.DiceAssociation = diceAssociation;
        }

        public DiceFace DiceAssociation { get; private set; }

        public Boolean IsEmpty { get; private set; }

        public void Fill()
        {
            if (!IsEmpty)
                throw new InvalidOperationException("Can't fill a glass already full");

            IsEmpty = false;
        }

        public void Empty()
        {
            if (IsEmpty)
                throw new InvalidOperationException("Can't empty a glass already empty");

            IsEmpty = true;
        }

    }
}
